package com.dk.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.dk.pojo.TSpike;
import com.dk.mapper.TSpikeMapper;
import com.dk.service.ITSpikeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.checkerframework.checker.units.qual.A;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author author
 * @since 2021-10-29
 */
@Service
public class TSpikeServiceImpl extends ServiceImpl<TSpikeMapper, TSpike> implements ITSpikeService {

    @Autowired
    private TSpikeMapper tSpikeMapper;

    @Autowired
    private RedisTemplate redisTemplate;

    @Override
    public List<TSpike> selectList(QueryWrapper wrapper) {
        return tSpikeMapper.selectList(wrapper);
    }

    @Override
    public List<TSpike> seleAll() {


        return tSpikeMapper.selectList(null);
    }
}
